export default defineNuxtRouteMiddleware((to, from) => {
  console.log('to', to)
  console.log('from', from)
  if (to.name === 'notfound') {
    setTimeout(() => {
      return navigateTo('/')
    }, 5000)
  }

  const SearchTF = useSearchTF();
  
  // if (to.name != 'index' && to.name != 'search-id') {
  //   SearchTF.value = true
  // } else {
  //   SearchTF.value = false
  // }

})